﻿using System.Collections.Generic;

namespace CommerceOne.Domains.Entities
{
    using System.ComponentModel.DataAnnotations;

    public class Brand
    {
        public int Id { get; set; }

        public string Name { get; set; }
        public string LogoPath { get; set; }
        public string Description { get; set; }

        public virtual List<Product> Products { get; set; }

        [NotMapped]
        public int ProductCount
        {
            get { return this.Products == null ? 0 : this.Products.Count; }
        }
    }
}
